<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CommentListing.ascx.cs" Inherits="Impact.Web.Controls.CommentListing" %>
<%@ Register Src="~/Controls/CommentEditor.ascx" TagPrefix="page" TagName="CommentEditor" %>

<div class="comments">
    <a name="comments"></a>
    <h2>Comments:</h2>

    <asp:Repeater ID="commentsRepeater" runat="server">
        <HeaderTemplate>

        </HeaderTemplate>
        
        <ItemTemplate>
                <div class='<%# ((Container.ItemIndex % 2) == 0) ? "comment_container" : "comment_container_alternate" %>'>
                    <div class="comment_title">
                        <a name="comment<%# Eval("CommentId") %>" href="<%# FormatUrl(Container.DataItem) %>">-&gt;</a>&nbsp;
                        <%# FormatAuthorLink(Container.DataItem) %>
                    </div>
                    
                    <div class="comment_body">
                        <%# Eval("Body") %>
                    </div>
                    
                </div>
        </ItemTemplate>
        
        <FooterTemplate>
        </FooterTemplate>
        
    </asp:Repeater>

    <page:CommentEditor ID="editor" Visible="false" runat="server" />    
    
</div>
    
        
